///|创建新窗口
pub fn new_window() -> Int64 {
  webui_new_window()
}

///|显示内容
/// |window| 窗口句柄
/// |content| 内容 html字符串\http链接\文件路径
pub fn show(window : Int64, content : String) -> Bool {
  let browser : Int64 = webui_get_best_browser(1)
  webui_show_browser(window, c_str(content), browser)
}

///|等待
/// |window| 窗口句柄
pub fn wait() -> Unit {
  webui_wait()
}

///|设置窗口大小
/// |window| 窗口句柄
/// |width| 宽度
/// |height| 高度
pub fn set_size(window : Int64, width : Int, height : Int) -> Unit {
  webui_set_size(window, width, height)
}

///|退出
pub fn exit() -> Unit {
  webui_exit()
}

///|
pub fn bind(window:Int64,element:String,callback:(Bytes)->Unit) -> Int64 {
  let bind:Int64 = webui_bind(window,c_str(element),callback)
  bind
}
